//构建后在dist文件夹生成一个时间戳标记文件
const fs = require('fs');
const path = require('path');

const timestamp = Date.now();
fs.writeFileSync(path.resolve(__dirname, '..', 'dist', 'timestamp.txt'), timestamp.toString());